package main

import (
	"go-gw-scaffold/api"
	"go-gw-scaffold/api/loadbanlance/inst"
	"log"
)

func main() {
	gws := api.GwsInstance("./conf/app.json")
	gws.AddLoadbanlance("xxx_banlance", inst.NewRandomBanlance())
	// 第二个参数为你自定义实现的loadbanlance实例
	gws.SetAutoLoadbanlance(true)
	gws.Run(func(data interface{}) {
		log.Println(data)
	})
}
